package com.cn.lyl.dao;

import com.cn.lyl.model.UserModel;

import java.util.List;

public interface UserDao {

    UserModel findByUsernameAndPassword(UserModel userModel);

    UserModel findByUsernameAndPasswordEnable(UserModel userModel);

    int add(UserModel UserModel);

    int updateInfo(UserModel UserModel);

    int updatePassword(UserModel userModel);

    int delete(UserModel UserModel);

    UserModel findById(int id);

    List<UserModel> findAll(UserModel userModel);

    UserModel selectInfoById(int id);

    int deleteUser(UserModel userModel);

    int updateEnable(UserModel userModel);

    int countFindAll(UserModel userModel);

}
